import { request, get, post } from '../request'

/**
 * @description 添加广告链接数据
 */
export const addADV = (params) => {
  return post({
    url: 'ADV/AddADV',
    data:params
  })
}
/**
 * @description 查询所有广告链接
 */
export const queryADVByPage = (params) => {
  return post({
    url: 'ADV/QueryADVByPage',
    data:params
  })
}
/**
 * @description 删除广告链接
 */
export const delADV = (params) => {
  return post({
    url: 'ADV/DelADV',
    data:params
  })
}
/**
 * @description 关联短视频和广告链接（视频分类、视频位置、广告链接）
 */
export const relateCameraAndADVShortVideo = (params) => {
  return post({
    url: 'ADV/RelateCameraAndADVShortVideo',
    data:params
  })
}
/**
 * @description 通过摄像头id查询短视频和广告链接
 */
export const queryADVShortVideoByCamId = (params) => {
  return post({
    url: 'ADV/QueryADVShortVideoByCamId',
    data:params
  })
}
/**
 * @description 获取广告链接
 */
export const getADV = (params) => {
  return post({
    url: 'ADV/GetADV',
    data:params
  })
}

/**
 * @description 编辑广告链接
 */
export const modifyADV = (params) => {
  return post({
    url: 'ADV/ModifyADV',
    data:params
  })
}